<?php
/**
* Author:cmb
*/
namespace Home\Model;
use Think\Model\RelationModel;

class OrderRelationModel extends RelationModel{

    Protected $tableName = 'menu';

    Protected $_link = array(
        'user_menu' => array(
            'mapping_type' => self::HAS_MANY,
            'mapping_name' => 'menu',
            'foreign_key' => 'menu_id',
        ), 
    );
}
?>